Conditions | 1 |
Total Lines | 15 |
Code Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | /* global window */ |
||
34 | |||
35 | renderTabs() { |
||
36 | const tabConfigs = this.configs; |
||
37 | const inheritProps = Object.assign({}, this.props); |
||
38 | delete inheritProps.id; |
||
39 | |||
40 | return tabConfigs.map(tab => ( |
||
41 | <Tab eventKey={tab.eventKey} title={tab.title}> |
||
42 | {React.createElement( |
||
43 | tab.ChildComponent, |
||
44 | Object.assign({ |
||
45 | ref: (elem) => { this.tabs[tab.eventKey] = elem; }, |
||
46 | }, inheritProps), |
||
47 | )} |
||
48 | </Tab> |
||
49 | )); |
||
64 |